import styles from './index.less';
import Banner from './banner';
import Brief from './brief';
import Nav from './nav';
import List from './list';
import React, { useEffect, useState, useRef } from 'react';
import "../a"

export default function IndexPage() {
  let [stat, setStat] = useState("")
  function getParmas(n: any) {
    setStat(n)
  }
  return (
    <div>
      {/* 轮播 */}
      <Banner></Banner>
      {/* 简介 */}
      <Brief></Brief>
      {/* 导航 */}
      <Nav getParmas={getParmas}></Nav>
      {/* 列表 */}
      <List stat={stat}></List>
    </div>
  );
}
